package cn.doitedu;

public class FOR_WHILE {
    public static void main(String[] args) {

        //  初始值     循环条件  每次循环后的变动
        for (int i = 0; i < 10; i++) {

        }


//        for(;;){
//
//        }


        for (int i = 50; i > 0; i--) {
            System.out.println(i);
        }


        for (int i = 50; i > 0; i = i - 2) {
            System.out.println(i);
        }


        for (int i = 0; i < 100; i = i + 10) {
            System.out.println(i);
        }

        // ------------------------------------------

        int x = 100;
        while (x > 0) {

            x = x - 1;
        }


        // ----


    }
}
